home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / japanpingpong.swf / scripts / frame_7 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  766 b   |  37 lines

  1. winnerDisplay._visible = 0;
  2. BG.Music.setVolume(30);
  3. BG.Music.start(0,999);
  4. MusicBtn.onPress = function()
  5. {
  6.    if(this._currentframe == 1)
  7.    {
  8.       this.gotoAndStop(2);
  9.       _root.BG.Music.stop("Bmusic");
  10.    }
  11.    else
  12.    {
  13.       this.gotoAndStop(1);
  14.       _root.BG.Music.start(0,9999);
  15.    }
  16. };
  17. MusicBtn.onRollOver = function()
  18. {
  19.    oColor = new Color(this);
  20.    oColor.setTransform({ra:-100,ga:-100});
  21. };
  22. MusicBtn.onRollOut = function()
  23. {
  24.    oColor = new Color(this);
  25.    oColor.setTransform({ra:100,ga:100});
  26. };
  27. MusicBtn.onDragOver = function()
  28. {
  29.    oColor = new Color(this);
  30.    oColor.setTransform({ra:-100,ga:-100});
  31. };
  32. MusicBtn.onDragOut = function()
  33. {
  34.    oColor = new Color(this);
  35.    oColor.setTransform({ra:100,ga:100});
  36. };
  37.